package com.hdax.ssm.dao;

import com.hdax.ssm.entity.Role;
import com.hdax.ssm.entity.UserRole;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface UserRoleDao {
    long  getRoleByUserId(long userId);
    @Update("update user_role set roleId=#{roleId} where userId=#{userId}")
    int modifyUserRole(@Param("userId") long userId,@Param("roleId") long roleId);
}
